<?php
class Khoi extends AppModel{
	public $name = 'Khoi';
	public $primaryKey = 'MaKhoi';
	//each Lop has many hocsinh
	public $hasMany = array(
		'Lop'=>array(
				'className'=>'Lop',
				'foreignKey'=>'MaLop',
				'dependent'=>'true'));
	public $belongsTo = array(
		'Truong'=>array(
				'className'=>'Truong',
				'foreignKey'=>'MaTruong'));
}
?>